Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...
while 1:
print ('Spam')
answer = input('Press y to end this loop')
if answer == 'y':
print ('Fries with that?')
break
print ('Have a ')
print ('nice day!')